import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpModule, JsonpModule } from '@angular/http';
import { HttpClientModule} from '@angular/common/http';
import { FormsModule } from '@angular/forms';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { PageTitleComponent } from './components/page-title/page-title.component';
import { NormalPageCardComponent } from './components/normal-page-card/normal-page-card.component';
import { HistoryComponent } from './pages/history/history.component';
import { HomeComponent } from './pages/home/home.component';
import { MenuComponent } from './components/menu/menu.component';
import { MenuCardComponent } from './components/menu/menu-card/menu-card.component';
import { PersonComponent } from './pages/person/person.component';
import { CourseComponent } from './pages/course/course.component';
import { RecommendComponent } from './pages/home/recommend/recommend.component';
import { SnackComponent } from './pages/home/snack/snack.component';
import { PastryComponent } from './pages/home/pastry/pastry.component';
import { HomeCookComponent } from './pages/home/home-cook/home-cook.component';
import { LoginComponent } from './pages/login/login.component';
import { LogonComponent } from './pages/logon/logon.component';
import { UsermodComponent } from './pages/usermod/usermod.component';
import { SettingComponent } from './components/setting/setting.component';

@NgModule({
  declarations: [
    AppComponent,
    PageTitleComponent,
    NormalPageCardComponent,
    HistoryComponent,
    HomeComponent,
    MenuComponent,
    MenuCardComponent,
    PersonComponent,
    CourseComponent,
    RecommendComponent,
    SnackComponent,
    PastryComponent,
    HomeCookComponent,
    LoginComponent,
    LogonComponent,
    UsermodComponent,
    SettingComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    HttpModule,
    HttpClientModule,
    FormsModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
